// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/index'
import cookies from 'vue-cookies'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css' //element-ui的css
Vue.use(ElementUI);
//配置字体图标
import "@/common/css/style.css";
Vue.config.productionTip = false;
Vue.prototype.$server = "http://localhost:3001"
Vue.use(cookies);
//配置字体图标
import "./common/css/style.css";
import "./common/css/reset.css";
import "./common/css/adapter.css";

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
router.afterEach((to, from, next) => {
  window.scrollTo(0, 0);
});